package me.caofeng.pojo;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * Copyright © 2017曹峰. All rights reserved.
 *
 * @Prject: mall
 * @Package: me.caofeng.pojo
 * @Description:
 * @Author: 曹峰 blog.caofeng.me
 * @Date: 2017-06-17 16:50
 * @Version: V1.0
 */
public class QuestionForm {

    @Size.List(@Size(min = 3,max = 3,message = "必须要填写三个问题及答案"))
    @NotNull
    @NotNull.List(@NotNull(message = "内容不能为空"))
    private List<SecurityQuestion> questions;

    public QuestionForm() {
    }

    public QuestionForm(List<SecurityQuestion> questions) {
        this.questions = questions;
    }

    public List<SecurityQuestion> getQuestions() {
        return questions;
    }

    public void setQuestions(List<SecurityQuestion> questions) {
        this.questions = questions;
    }

    @Override
    public String toString() {
        return "QuestionForm{" +
                "questions=" + questions +
                '}';
    }
}
